Wiki

Clone wiki

inf225 / glossary / Stack frame

[Alphabetical Index | Tag Index]

Stack frame (also Activation record)

A data structure that contains the local state of a function. Typically includes argument values, local variables and a return address (for transferring control back to the caller when the function returns). In a language with nested functions and updatable state (such as Scheme), stack frames are not necessarily actually placed on a stack. For example, if an inner function g is returned from an outer function f and also accesses variables in f, then f's activation record must remain intact as long as g lives.

[Wikipedia]

Updated